package com.koron.order.maintain.mapper;

import com.koron.order.maintain.bean.entity.MaintainEquipmentPo;
import com.koron.order.maintain.bean.vo.MaintainEquipmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (MaintainEquipment)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-14 14:25:14
 */
public interface MaintainEquipmentMapper {

    MaintainEquipmentPo queryById(String id);

    List<MaintainEquipmentPo> queryList(@Param("maintainEquipment")MaintainEquipmentPo maintainEquipment,@Param("language")String language);

    int insert(MaintainEquipmentPo maintainEquipment);

    int update(MaintainEquipmentPo maintainEquipment);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    int insertBatch(@Param("list") List<MaintainEquipmentPo> maintainEquipmentPoList);

    List<MaintainEquipmentVo> queryByOrderId(@Param("maintainId") String orderId,@Param("maintainEquipmentId") String maintainEquipmentId);

    int deleteByIds(@Param("ids") String ids);

    List<MaintainEquipmentPo> queryByOrderIds(@Param("orderId") String orderId);

}